-
-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix misleading log message for aria-current="true" #11782
Conversation
Types and naming for isCurrent were confusing, so normalize the types using an enum and only name as ariaCurrent when the data is specific to aria-current, otherwise use 'isCurrent'. Include comments to link aria-current as the potential (likely) source for 'isCurrent'
This comment has been minimized.
This comment has been minimized.
- Use a property - shorten name
@LeonarddeR I have addressed your suggestions. I think making this a property is a good idea. I decided against |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great @feerrenrut
I have just noticed inconsistent case for |
Python docs for enum use upper case for members of the enum, so I'll match that style. |
See test results for failed build of commit afe27d9a62 |
See test results for failed build of commit 66cf02e9be |
…fferently. Picked the best lines from both.
…fferently. Picked the best lines from both.
Changes from #11782 were listed twice, though slightly differently. Picked the best lines from both.
Link to issue number:
None
Summary of the issue:
There is a misleading log message for aria-current="true". It was a non-handled value, an exception was raised, a message added to the log, and the value
True
(bool rather than str) was used.When trying to follow this code it is hard to know where the values are strings, None, or bool. In some cases the naming is overly specific.
Description of how this pull request fixes the issue:
Types and naming for isCurrent were confusing, so normalize the types
using an enum and only name as ariaCurrent when the data is specific to aria-current,
otherwise use 'isCurrent'. Include comments to link aria-current as the
potential (likely) source for 'isCurrent'
Testing performed:
Used Chrome, Firefox, IE, and Edge with https://a11ysupport.io/tests/html/aria/aria-current.html
Known issues with pull request:
This is technically an API breaking change. If there are any concerns about this, we may have to wait for the 2021.1 release.
Change log entry: